package com.passion.solr.context;

import com.passion.solr.config.SolrConfig;
import com.passion.solr.service.SolrManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.stereotype.Component;

/**
 * 类描述：solr相关的服务上下文
 *
 * @author ZhuYin
 * @since 2025年01月02日
 */
@Component
@ConditionalOnBean(SolrConfig.class)
public class SolrContext {

    public static SolrManageService solrManageService;
    @Autowired(required = false)
    public void setSolrManageService(SolrManageService solrManageService) {
        SolrContext.solrManageService = solrManageService;
    }



}
